.class Lcom/netease/newsreader/activity/VoteSubmit$4;
.super Ljava/lang/Object;
.source "VoteSubmit.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/VoteSubmit;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/VoteSubmit;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/VoteSubmit;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    .line 123
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/VoteSubmit$4;)Lcom/netease/newsreader/activity/VoteSubmit;
    .locals 1
    .parameter

    .prologue
    .line 123
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7
    .parameter "v"

    .prologue
    const/4 v6, 0x1

    .line 126
    iget-object v3, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    iget-object v4, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v4}, Lcom/netease/newsreader/activity/VoteSubmit;->access$4(Lcom/netease/newsreader/activity/VoteSubmit;)Lcom/netease/newsreader/bean/VoteBean;

    move-result-object v4

    invoke-virtual {v4}, Lcom/netease/newsreader/bean/VoteBean;->getId()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/netease/newsreader/activity/VoteSubmit;->access$5(Lcom/netease/newsreader/activity/VoteSubmit;Ljava/lang/String;)V

    .line 127
    const/4 v2, 0x0

    .line 128
    .local v2, sum:I
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    iget-object v3, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v3}, Lcom/netease/newsreader/activity/VoteSubmit;->access$3(Lcom/netease/newsreader/activity/VoteSubmit;)[Landroid/widget/RadioButton;

    move-result-object v3

    array-length v3, v3

    if-lt v1, v3, :cond_0

    .line 135
    iget-object v3, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v3}, Lcom/netease/newsreader/activity/VoteSubmit;->access$3(Lcom/netease/newsreader/activity/VoteSubmit;)[Landroid/widget/RadioButton;

    move-result-object v3

    array-length v3, v3

    if-ne v2, v3, :cond_2

    .line 136
    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v3, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-direct {v0, v3}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 137
    .local v0, builder:Landroid/app/AlertDialog$Builder;
    const v3, 0x1080027

    invoke-virtual {v0, v3}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    .line 138
    const-string v4, "\u8bf7\u9009\u62e9"

    invoke-virtual {v3, v4}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    .line 139
    const v4, 0x7f0b003f

    invoke-virtual {v3, v4}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    .line 140
    invoke-virtual {v3, v6}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    .line 141
    const-string v4, "\u786e\u5b9a"

    new-instance v5, Lcom/netease/newsreader/activity/VoteSubmit$4$1;

    invoke-direct {v5, p0}, Lcom/netease/newsreader/activity/VoteSubmit$4$1;-><init>(Lcom/netease/newsreader/activity/VoteSubmit$4;)V

    invoke-virtual {v3, v4, v5}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    .line 142
    invoke-virtual {v3}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 200
    .end local v0           #builder:Landroid/app/AlertDialog$Builder;
    :goto_1
    return-void

    .line 129
    :cond_0
    iget-object v3, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v3}, Lcom/netease/newsreader/activity/VoteSubmit;->access$3(Lcom/netease/newsreader/activity/VoteSubmit;)[Landroid/widget/RadioButton;

    move-result-object v3

    aget-object v3, v3, v1

    invoke-virtual {v3}, Landroid/widget/RadioButton;->isChecked()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 130
    iget-object v3, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    iget-object v4, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v4}, Lcom/netease/newsreader/activity/VoteSubmit;->access$3(Lcom/netease/newsreader/activity/VoteSubmit;)[Landroid/widget/RadioButton;

    move-result-object v4

    aget-object v4, v4, v1

    invoke-virtual {v4}, Landroid/widget/RadioButton;->getTag()Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/netease/newsreader/activity/VoteSubmit;->access$6(Lcom/netease/newsreader/activity/VoteSubmit;Ljava/lang/String;)V

    .line 128
    :goto_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 132
    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    .line 144
    :cond_2
    iget-object v3, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    new-instance v4, Landroid/app/ProgressDialog;

    iget-object v5, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-direct {v4, v5}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    invoke-static {v3, v4}, Lcom/netease/newsreader/activity/VoteSubmit;->access$7(Lcom/netease/newsreader/activity/VoteSubmit;Landroid/app/ProgressDialog;)V

    .line 145
    iget-object v3, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v3}, Lcom/netease/newsreader/activity/VoteSubmit;->access$0(Lcom/netease/newsreader/activity/VoteSubmit;)Landroid/app/ProgressDialog;

    move-result-object v3

    const-string v4, "\u63d0\u4ea4\u6295\u7968\u6570\u636e..."

    invoke-virtual {v3, v4}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 146
    iget-object v3, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v3}, Lcom/netease/newsreader/activity/VoteSubmit;->access$0(Lcom/netease/newsreader/activity/VoteSubmit;)Landroid/app/ProgressDialog;

    move-result-object v3

    invoke-virtual {v3, v6}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 147
    iget-object v3, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v3}, Lcom/netease/newsreader/activity/VoteSubmit;->access$0(Lcom/netease/newsreader/activity/VoteSubmit;)Landroid/app/ProgressDialog;

    move-result-object v3

    new-instance v4, Lcom/netease/newsreader/activity/VoteSubmit$4$2;

    invoke-direct {v4, p0}, Lcom/netease/newsreader/activity/VoteSubmit$4$2;-><init>(Lcom/netease/newsreader/activity/VoteSubmit$4;)V

    invoke-virtual {v3, v4}, Landroid/app/ProgressDialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V

    .line 158
    iget-object v3, p0, Lcom/netease/newsreader/activity/VoteSubmit$4;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v3}, Lcom/netease/newsreader/activity/VoteSubmit;->access$0(Lcom/netease/newsreader/activity/VoteSubmit;)Landroid/app/ProgressDialog;

    move-result-object v3

    invoke-virtual {v3}, Landroid/app/ProgressDialog;->show()V

    .line 160
    new-instance v3, Lcom/netease/newsreader/activity/VoteSubmit$4$3;

    invoke-direct {v3, p0}, Lcom/netease/newsreader/activity/VoteSubmit$4$3;-><init>(Lcom/netease/newsreader/activity/VoteSubmit$4;)V

    .line 197
    invoke-virtual {v3}, Lcom/netease/newsreader/activity/VoteSubmit$4$3;->start()V

    goto :goto_1
.end method
